import request from '@/network/request';

// 收货地址列表 http://{{host}}/bufan/address/getListAction   参数openId

function getListAction(data) {
  return request({
    url: '/address/getListAction',
    data
  })
}

// 获取收货地址详情  http://{{host}}/bufan/address/detailAction  参数id

function getDetailAction(data) {
  return request({
    url: '/address/detailAction',
    data
  })
}

// 删除收货地址  http://{{host}}/bufan/address/deleteAction  参数id

function getDeleteAction(data) {
  return request({
    url: '/address/deleteAction',
    data
  })
}

// POST 保存和跟添加收货地址  http://{{host}}/bufan/address/saveAction  
//参数

function getSaveAction(data) {
  return request({
    url: '/address/saveAction',
    method: 'post',
    data
  })
}

export {
  getListAction,
  getDetailAction,
  getDeleteAction,
  getSaveAction
}